import request from "./request";

export function getAccessTokenByCode(params) {
  return request({
    url: "/api/wx/getAccessTokenByCode",
    method: "POST",
    data: {
      code: params.code,
    },
  });
}

export function getWxUserInfo() {
  return request({
    url: "/api/wx/getWxUserInfo",
    method: "POST",
  });
}
